/*
 * Context.hpp
 *
 *  Created on: 03.12.2012
 *      Author: zheka
 */

#ifndef CONTEXT_HPP_
#define CONTEXT_HPP_

class Task;
class EventDispatcher;

class Context {
public:
	Context(EventDispatcher * dispatcher, Task * task);
	void enableRead();
	void disableRead();
	void enableWrite();
	void disableWrite();
	void unregister();
	void registerNewTask(Task * task);
private:
	EventDispatcher * dispatcher;
	Task * task;

};

#endif /* CONTEXT_HPP_ */
